<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
	{% include file="header_frm.html" %}
	<body>
		
		<form action="frm_questions_mng.php" method="post">			
			<div>
				选择章节：
			</div>
			<div>
				<select name="question_chapter_id">
					{%section name=index loop=$chapters%}
					<option value="{%$chapters[index]->getChapterId()%}">{%$chapters[index]->getChapterName()%}</option>
					{%/section%}
				</select>
			</div>
			<div>
				添加章节：
			</div>
			<div>
				<input type="text" name="chapter_name" />
				<input type="submit" value="添加"/>
			</div>
			<div>
				试题列表：
			</div>
			<div>
				{%section name=index loop=$questions%}
				<div>
					{%$questions[index]->getQuestionTitle()%}
				</div>
				<div>
					{%$questions[index]->getQuestionAnswerA()%}
				</div>
				<div>
					{%$questions[index]->getQuestionAnswerB()%}
				</div>
				<div>
					{%$questions[index]->getQuestionAnswerC()%}
				</div>
				<div>
					{%$questions[index]->getQuestionAnswerD()%}
				</div>
				<div>
					{%$questions[index]->getQuestionAnswerCorrect()%}
				</div>
				<div>
					{%$questions[index]->getQuestionAnalytic()%}
				</div>
				{%/section%}
			</div>
			<div>
				添加试题：
			</div>
			<div>
				题目：
				<input type="text" name="question_title"/><br/>
				答案A：
				<input type="text" name="question_answer_a"/><br/>
				答案B：
				<input type="text" name="question_answer_b"/><br/>
				答案C：
				<input type="text" name="question_answer_c"/><br/>
				答案D：
				<input type="text" name="question_answer_d"/><br/>
				解析：
				<textarea name="question_analytic"></textarea>
				正确答案：
				<select name="question_answer_correct">
					<option value="0">A</option>
					<option value="1">B</option>
					<option value="2">C</option>
					<option value="3">D</option>
				</select><br/>
				<input type="submit" value="添加试题"/>
			</div>
		</form>
	</body>
</html>
